﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TMV.DTO.ModelData;

namespace TMV.DTO.Tr
{

	public class ScalageRecordsDTO
	{
		public Guid Id { get; set; }


		/// <summary>
		/// 运输Id
		/// </summary> 
		public Guid TId { get; set; }

		/// <summary>
		/// 流程号/1绑卡，2入厂，3采样，4过毛重，5卸煤，6过皮重，7刷卡打印，8出厂
		/// </summary> 
		public int ProcessStatus { get; set; }

		private string processName = "";
		public string ProcessName
		{
			get
			{
				if (ProcessStatus == 1)
				{
					return "1绑卡";
				}
				else if (ProcessStatus == 2)
				{
					return "2入厂";
				}
				else if (ProcessStatus == 3)
				{
					return "3采样";
				}
				else if (ProcessStatus == 4)
				{
					return "4过毛重";
				}
				else if (ProcessStatus == 4)
				{
					return "5卸煤";
				}
				else if (ProcessStatus == 4)
				{
					return "6过皮重";
				}
				else if (ProcessStatus == 4)
				{
					return "7刷卡打印";
				}
				else
				{
					return "8出厂";
				}
			}
			set { processName = value; }
		}

		/// <summary>
		/// 记录时间
		/// </summary> 
		public DateTime AddTime { get; set; }
	}


	public class Request_ScalageRecordsDTO2 : ModelDTO
	{
		/// <summary>
		/// 衡名称
		/// </summary> 
		public string ScalageName { get; set; }
	}
	public class ScalageRecordsDTO2
	{
		/// <summary>
		/// 单号
		/// </summary>
		public string Code { get; set; }
		/// <summary>
		/// 车牌号
		/// </summary>
		public string PlateNumber { get; set; }
		/// <summary>
		/// 发货单位
		/// </summary>
		public string SendUnit { get; set; }
		/// <summary>
		/// 收货单位
		/// </summary>
		public string ReceiptUnit { get; set; }
		/// <summary>
		/// 货物名称
		/// </summary>
		public string CargoName { get; set; }
		/// <summary>
		/// 毛量
		/// </summary> 
		public decimal? RoughWeight { get; set; }

		/// <summary>
		/// 皮重
		/// </summary> 
		public decimal? TareWeight { get; set; }

		/// <summary>
		/// 净重
		/// </summary> 
		public decimal? NetWeight { get; set; }

		/// <summary>
		/// 称重时间
		/// </summary> 
		public DateTime AddTime { get; set; }
	}
}
